import requests


class ApiRequest(object):
    #------------第一中请求方式封装request类，调用可根据实际情况传参-------
    def send_requests(self,method,url,data=None,params=None,headers=None,cookies=None,json=None,
                      files=None,auth=None,timeout=None):
        self.res=requests.request(method=method,url=url,data=data,headers=headers,params=params,cookies=cookies,json=json,files=files,auth=auth,timeout=timeout)
        return self.res